package net.web.belerofont.action.validation.plugin;

import net.web.belerofont.action.validation.ValidationPerform;
import net.web.belerofont.action.validation.Validator;

public class IntegerFormatValidator implements Validator {

	public boolean isValid(String regex, String value) {
		
		regex = (regex.equals("")?"[0-9]*":regex);
		
		ValidationPerform perform = new ValidationPerform();
		
		return perform.perform(regex, value);
	}

}
